package cn.blossoming.service.base.consts;

public class RedisKeys {

    /**
     * 手机号验证码key
     * @param phone 手机号
     * @return key
     */
    public static String verificationPhone(String phone){
        return String.format("verification:%s", phone);
    }

    /**
     * 唯一用户表示登入key
     */
    public static final String ONLY_USER_KEY = "only:user";

    public static String getOnlyUserHashKey(int userId){
        return String.format("user:%d", userId);
    }

}
